<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<script type="text/javascript" src="js/jquery.min.js"></script>  
<script type="text/javascript">  
function doLogin(){  
   $.ajax({  
        url:"http://localhost:8080/cas/login?action=getlt&callback=?",     
        dataType:"jsonp",  
        success:function(data){  
            $("#lt").val(data.lt)  
            $("#execution").val(data.execution)  
            $("#fi").submit();  
        }  
   });  
}  
</script>  
<body>

    <form id="fi" method="post" action="http://localhost:8080/cas/login">  
        用户名：<input name="username" value="admin"><br>  
        密码：<input name="password" value="admin"><br>  
        loginTicket：<input id="lt" class="lt" name="lt" type="text"><br>  
        flowExecutionKey：<input id="execution" class="execution" name="execution" type="text"><br>  
        _eventId：<input name="_eventId" value="submit" />  
    </form>  
        <input type="button" onclick="doLogin()" value="cas">  

</body>
</html>